import { useI18n } from 'vue-i18n'

// 创建一个函数来获取映射，这样可以访问到 i18n
export function getTaskCategoryMapping() {
  const { t } = useI18n()
  return {
    0: t('shoppingHelp'),
    1: t('housework'),
    2: t('companionship'),
    3: t('medicalCompanion'),
    4: t('healthDetection'),
    5: t('rehabilitation'),
    6: t('entertainment'),
    7: t('welfareApplication'),
    8: t('other')
  }
}

// 保持向后兼容的静态映射
export default {
  0: '购物帮忙',
  1: '家务',
  2: '陪护',
  3: '陪诊',
  4: '健康检测',
  5: '康复',
  6: '娱乐',
  7: '福利申请',
  8: '其他'
}
